﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using VehicleOOBWeb.Filters;
using VehicleOOBWeb.Models;
using WebMatrix.WebData;

namespace VehicleOOBWeb.Controllers
{
    [InitializeSimpleMembership]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            string t = WebSecurity.CurrentUserName;

            ViewBag.NewVehicles = VehicleService.GetNewVehicles();
            ViewBag.HotVehicles = VehicleService.GetHotVehicles();

            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Liên hệ";

            return View();
        }
    }
}
